﻿using System.Collections.Generic;

namespace reformater
{
    public class DateiSchreiben
    {
        public int SchreibeZeilenweise(string p_Datei, List<string> p_Text)
        {
            var checkwrite = -1;
            var sw = new System.IO.StreamWriter(p_Datei, false);
            foreach (var tmp_Item in p_Text)
            {
                sw.WriteLine(tmp_Item);
                checkwrite = 0;
            }
            sw.Dispose();
            return checkwrite;
        }
    }
}
